﻿/*-------------------------------------------------------------------------
* 命名空间: XrayDirection.DAL/DataContext
* 类       名: DataContext
* 功      能:  TD
* 时      间:  2024/1/3 14:57:42
* 版      本:  V1.0
* 作      者:  Fioman
* 格      言:  Talk is cheap,show me the code ^_^
*-------------------------------------------------------------------------*/
using Microsoft.EntityFrameworkCore;
using XrayDirection.DAL.DataEntity;

namespace XrayDirection.DAL
{
    public class DataContext : DbContext
    {
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            base.OnConfiguring(optionsBuilder);
            optionsBuilder.UseSqlServer(@"Server=.\;Database=YiDunXrayDataBase;User Id=Fioman;Password=112233;Trusted_Connection=True;TrustServerCertificate=True;");
        }

        public DbSet<OrderEntity> Orders { get; set; }
        public DbSet<WorkingInfoEntity> WorkingInfos { get; set; }
        public DbSet<InputOrderEntity> InputOrders { get; set; }
        public DbSet<AlarmEntity> AlarmRecords { get; set; }
        public DbSet<EapParamsEntity> EapParams { get; set; }
    }
}
